package qidi.gushi;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.iflytek.voicedemo.R;
/**
 韩梦飞沙 韩亚飞 313134555@qq.com yue31313 han_meng_fei_sha
 on 2018/2/4.
 古诗中一个字的对应解释 页面
 */
public class ZiJieShi extends BaseActivity
{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        initView();
    }
    /**初始化视图*/
    public void initView(){
        setContentView(R.layout.activity_zijieshi);
        zi = (TextView)findViewById(R.id.zi);
        jieshi = (TextView)findViewById(R.id.jieshi);
        initData();
    }
    /**初始化数据*/
    private void initData()
    {
        Intent intent = getIntent();
        zi.setText(intent.getStringExtra("zi"));
    }
    /**打开该界面*/
    public static void openSelf(Context context,String zi)
    {
        Intent intent = new Intent(context,ZiJieShi.class);
        intent.putExtra("zi",zi);
        context.startActivity(intent);
    }
    /**字*/
    TextView zi;
    /**解释*/
    TextView jieshi;
}
